import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/cupertino.dart';
import 'package:school_safe_teacher/resourse/app_colors.dart';


class ChangeUserInfoState implements Cloneable<ChangeUserInfoState> {
  String info;
  TextEditingController infoController;

  Color loginTextColor;
  Color loginBtnStartColor;
  Color loginBtnEndColor;

  @override
  ChangeUserInfoState clone() {
    return ChangeUserInfoState()
      ..info = info
      ..infoController = infoController
      ..loginTextColor = loginTextColor
      ..loginBtnStartColor = loginBtnStartColor
      ..loginBtnEndColor = loginBtnEndColor;
  }
}

ChangeUserInfoState initState(Map<String, dynamic> args) {
  TextEditingController controller = TextEditingController();
  return ChangeUserInfoState()
    ..info = ""
    ..infoController = controller
    ..loginTextColor = AppColors.cantClickTextColor
    ..loginBtnStartColor = AppColors.loginBtnColor
    ..loginBtnEndColor = AppColors.loginBtnColor;
}
